<include file="nav:headr"/>
<div class="container">
    <div class="row">
        <div style="height: 30px"></div>
        <div class="col-md-2">
            <include file="Content:sider"/>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h4>{$page_title}</h4>
            </div>
            <div class="btn-group" role="group" aria-label="...">
                <a href="{:U('Category/index')}" class="btn btn-default">بارلىق كاتېگورىيەلەر</a>
            </div>
            <div style="height: 20px"></div>
            <form action="{:U('Category/savehend')}" method="post">
                <input type="hidden" name="cid" value="{$category['cid']}" >
                <div class="form-group">
                    <input name="cname" type="text" class="form-control" placeholder="كاتېگورىيە نامى" value="{$category['cname']}">
                </div>
                <div class="form-group">
                    <input name="sort" type="text" class="form-control" placeholder="تەرتىپ" value="{$category['sort']}">
                </div>
                <div class="form-group">
                    <select class="form-control" name="pid">
                        <option value="0">ئانا كاتېگورىيە</option>
                        <foreach name="categorys" item="c">
                            <option value="{$c['cid']}" <if condition="$c['cid'] eq $category['pid']">selected</if>><if condition="$c['pid'] neq 0"><?php echo str_repeat('&nbsp;',$c['level']*10);?>┘─&nbsp;</if>{$c['cname']}</option>
                        </foreach>
                    </select>
                </div>
                <div class="form-group">
                    <label class="radio-inline">
                        <input type="radio" name="status" id="inlineRadio1" value="1" <if condition="$category['status']==1">checked</if> > ئوچۇق
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="status" id="inlineRadio2" value="0" <if condition="$category['status']==0">checked</if>> تاقاق
                    </label>
                </div>
                <button type="submit" class="btn btn-default">ساقلاش</button>
            </form>
        </div>
    </div>
</div>

<include file="nav:footer" />